import Vue from 'vue'
import VueRouter from 'vue-router'
import Map from '../components/Map.vue'
import Sidebar from '../components/side_bar.vue'
import Historical from '../components/Historical.vue'
import Chart from '../components/Chart.vue'
import Prediction from '../components/Prediction.vue'
import MaxWL from '../components/maxWL.vue'

Vue.use(VueRouter)

export default new VueRouter({
    routes: [
        {
            path: '/',
            name: 'Map',
            component: Map
        },
        {
            path: '',
            name: 'sidebar',
            component: Sidebar
        },
        {
            path: '/historical',
            name: 'historical',
            component: Historical
        },
        {
            path: '/chart',
            name: 'chart',
            component: Chart
        },
        {
            path: '/prediction',
            name: 'prediction',
            component: Prediction
        },
        {
            path: '/maxWL',
            name: 'maxWL',
            component: MaxWL
        }
    ]
})